package cn.like.entity;

import cn.like.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 登录日志(CommonLoginLog)表实体类
 *
 * @author like
 * @since 2021-07-08 15:59:14
 */
@Data
@TableName("common_login_log")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "登录日志")
@SuppressWarnings("serial")
public class CommonLoginLog extends BaseEntity<CommonLoginLog> {
	
	public static final String id_col_name = "id";
	public static final String requestIp_col_name = "request_ip";
	public static final String userId_col_name = "user_id";
	public static final String userName_col_name = "user_name";
	public static final String account_col_name = "account";
	public static final String description_col_name = "description";
	public static final String loginDate_col_name = "login_date";
	public static final String ua_col_name = "ua";
	public static final String browser_col_name = "browser";
	public static final String browserVersion_col_name = "browser_version";
	public static final String operatingSystem_col_name = "operating_system";
	public static final String location_col_name = "location";
	public static final String createTime_col_name = "create_time";
	public static final String createUser_col_name = "create_user";
	
	
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "主键")
	@NotNull(message = "id不能为空")
	private Long id;
	
	/**
	 * 操作IP
	 */
	@ApiModelProperty(value = "操作IP")
	private String requestIp;
	
	/**
	 * 登录人ID
	 */
	@ApiModelProperty(value = "登录人ID")
	private Long userId;
	
	/**
	 * 登录人姓名
	 */
	@ApiModelProperty(value = "登录人姓名")
	private String userName;
	
	/**
	 * 登录人账号
	 */
	@ApiModelProperty(value = "登录人账号")
	private String account;
	
	/**
	 * 登录描述
	 */
	@ApiModelProperty(value = "登录描述")
	private String description;
	
	/**
	 * 登录时间
	 */
	@ApiModelProperty(value = "登录时间")
	private Object loginDate;
	
	/**
	 * 浏览器请求头
	 */
	@ApiModelProperty(value = "浏览器请求头")
	private String ua;
	
	/**
	 * 浏览器名称
	 */
	@ApiModelProperty(value = "浏览器名称")
	private String browser;
	
	/**
	 * 浏览器版本
	 */
	@ApiModelProperty(value = "浏览器版本")
	private String browserVersion;
	
	/**
	 * 操作系统
	 */
	@ApiModelProperty(value = "操作系统")
	private String operatingSystem;
	
	/**
	 * 登录地点
	 */
	@ApiModelProperty(value = "登录地点")
	private String location;
	
	/**
	 * 创建人id
	 */
	@ApiModelProperty(value = "创建人id")
	@TableField(fill = FieldFill.INSERT)
	private Long createUser;
	
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	
}